# 基于哪个镜像
FROM registry.cn-beijing.aliyuncs.com/wulong1104/nginx:latest
ENV TZ Asia/Shanghai
# 重写配置文件
RUN tee /etc/nginx/conf.d/default.conf <<-'EOF'
server {
    listen  80;
    server_name localhost;

    location / {
        root  /var/www;
        index  index.html index.htm;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
}
EOF
# 拷贝静态页面文件夹到容器
ADD site /var/www